'use strict';	//严格模式
// 后台课程管理的路由配置
// 添加、列表、修改、删除、批量删除等url地址

const express = require('express');

// 使用express的Router方法
const subjectRouter = express.Router();		// 定义课程的路由对象

// 加载课程控制器
const subjectCtr = require('../../controllers/subjectController.js');

subjectRouter.get('/subject_add',subjectCtr.subjectAdd);
subjectRouter.post('/subject_add',subjectCtr.subjectAddData);

subjectRouter.get('/subject_list',subjectCtr.subjectList);

subjectRouter.get('/subject_delete/:id',subjectCtr.subjectDelete);

subjectRouter.get('/subject_edit/:id',subjectCtr.subjectEdit);	

subjectRouter.post('/subject_edit/:id',subjectCtr.subjectEditData);	

module.exports = subjectRouter;